/* 
 *  javascribd - Java client library for the Scribd API. 
 *  Copyright (C) 2009 by Marcel Eyke, http://code.google.com/p/javascribd/ 
 *  Use is subject to license terms of LGPLv3. See license.txt. 
 */
package com.google.code.javascribd.type;

public class DocumentId {
	private final int docId;

	public DocumentId(int docId) {
		this.docId = docId;
	}

	public int intValue() {
		return docId;
	}

	@Override
	public int hashCode() {
		return docId;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DocumentId other = (DocumentId) obj;
		return docId == other.docId;
	}

	@Override
	public String toString() {
		return Integer.toString(docId);
	}
}
